#ifndef SKETCHWIDGET_H
#define SKETCHWIDGET_H

#include "ShowImageLabel.h"

const QSize WidgetSize = QSize(200,200);

class SketchWidget : public QWidget
{
    Q_OBJECT
public:
    explicit SketchWidget(const QString &tag,QWidget *parent = nullptr);
    ~SketchWidget();

    bool setTagImagePath(const QString &tip);

protected:
    void init();
    void ZoomImageCurWidget(QImage *);

signals:
    void DeleteDown(const QString &);
    void OpenShow(const QString &);

private:
    QString TAG;
    ShowImageLabel *label;                      // 展示图片
    QPushButton *buttonDelete;                  // 删除图片和本地文件
    QImage *image;
};

#endif // SKETCHWIDGET_H
